package pooky.shared;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PookyStop implements Serializable{

	@Persistent
	private Date date;

	@PrimaryKey
	private String location;
	@Persistent
	private Coordinates coordinates;
	@Persistent
	private int zoomLevel;
	@Persistent
	private Image image;
	@Persistent
	private String text;
	@Persistent
	private String country;
	@Persistent
	private int dayOrder;
	

	public PookyStop() {
		coordinates = new Coordinates();
	}


	public Date getDate() {
		if (date == null){
			return new Date();
		}else {
			return date;	
		}
		
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public Coordinates getCoordinates() {
		return coordinates;
	}
	public void setCoordinates(Coordinates coordinates) {
		this.coordinates = coordinates;
	}
	public int getZoomLevel() {
		return zoomLevel;
	}
	public void setZoomLevel(int zoomLevel) {
		this.zoomLevel = zoomLevel;
	}
	public Image getImage() {
		return image;
	}
	public void setImage(Image image) {
		this.image = image;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public int getDayOrder() {
		return dayOrder;
	}
	public void setDayOrder(int dayOrder) {
		this.dayOrder = dayOrder;
	}



}
